API Documentation
TextureUtils.h
1 // TextureUtils.h
3 //
5 
6 namespace nkGraphics
7 {
11  class TextureUtils final
12  {
13  public :
14 
19  static unsigned int getFormatByteSize (FORMAT format) ;
24  static unsigned int getFormatChannelCount (FORMAT format) ;
29  static unsigned int getFormatPlaneCount (FORMAT format) ;
60 
65  static bool isFormatOver255 (FORMAT format) ;
72  static bool isFormatCompressed (FORMAT format) ;
79  static bool isFormatCompatibleForRenderFlag (FORMAT format, TEX_RENDER_FLAG renderFlag, BIND_FLAG bindFlag) ;
80 
87  static int getNeededMipsForSize (int width, int height, int depthOrArraySize) ;
88  } ;
89 }
nkGraphics::TextureUtils
Utility class to retrieve or compute interesting data about textures.
Definition: TextureUtils.h:12
nkGraphics::TextureUtils::getFormatDepthEquivalent
static FORMAT getFormatDepthEquivalent(FORMAT format)
nkGraphics::TextureUtils::isFormatCompatibleForRenderFlag
static bool isFormatCompatibleForRenderFlag(FORMAT format, TEX_RENDER_FLAG renderFlag, BIND_FLAG bindFlag)
nkGraphics::TextureUtils::getFormatByteSize
static unsigned int getFormatByteSize(FORMAT format)
nkGraphics::TextureUtils::getFormatSrgbEquivalent
static FORMAT getFormatSrgbEquivalent(FORMAT format)
nkGraphics::TextureUtils::getFormatChannelCount
static unsigned int getFormatChannelCount(FORMAT format)
nkGraphics::TextureUtils::isFormatOver255
static bool isFormatOver255(FORMAT format)
nkGraphics::TextureUtils::getFormatUncompressedEquivalent
static FORMAT getFormatUncompressedEquivalent(FORMAT format)
nkGraphics::TextureUtils::isFormatCompressed
static bool isFormatCompressed(FORMAT format)
nkGraphics::TextureUtils::getFormatRgbEquivalent
static FORMAT getFormatRgbEquivalent(FORMAT format)
nkGraphics::TextureUtils::getFormatTypelessEquivalent
static FORMAT getFormatTypelessEquivalent(FORMAT format)
nkGraphics::FORMAT
FORMAT
Available formats for resources.
Definition: DxDefinesWrapper.h:86
nkGraphics::TextureUtils::getNeededMipsForSize
static int getNeededMipsForSize(int width, int height, int depthOrArraySize)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::TextureUtils::getFormatWithAlphaEquivalent
static FORMAT getFormatWithAlphaEquivalent(FORMAT format)
nkGraphics::TEX_RENDER_FLAG
TEX_RENDER_FLAG
The render flag possible for a texture.
Definition: Texture.h:22
nkGraphics::TextureUtils::getFormatPlaneCount
static unsigned int getFormatPlaneCount(FORMAT format)